<template>
  <div class="class-main">
    <a href="">
      <div class="autobg">
      </div>
    </a>
    <a href="">
      <div class="autobg">
      </div>
    </a>
    <a href="">
      <div class="autobg">
      </div>
    </a>
    <a href="">
      <div class="autobg">
      </div>
    </a>
    <a href="">
      <div class="autobg">
      </div>
    </a>
    <div class="market-img market-item1">
      <div class="container">
        <a href="">
          <img src="../assets/list-banner2.jpg" class="img-fluid" alt="" lazyload="true" data-original="item.image">
        </a>
      </div>
    </div>
    <div class="market-img market-item2">
      <div class="container">
        <a href="">
          <img src="../assets/banner-list.png" class="img-fluid" alt="" lazyload="true" data-original="item.image">
        </a>
      </div>
    </div>
    <div class="market-img market-item3">
      <div class="container">
        <a href="">
          <img class="img-fluid" src="../assets/banner-list.jpg" alt="">
        </a>
      </div>
    </div>
    <div class="market-img market-item4">
      <div class="container">
        <h1>
          <img class="img-fluid" src="../assets/classroommarketing.png" alt="">
        </h1>
        <div class="market-span">
          <span class="font-white">更多班级敬请期待</span>
        </div>
        <div class="container container-special">
          <a href="">
            <div class="market-img-item col-4">
              <img src="../assets/marketing-item1.png" alt="">
              <h2 class="font-white">体系化学习</h2>
              <p class="font-white fs-sm">打包系统课程<br>告别东拼西凑的零散式学习</p>
            </div>
            <div class="market-img-item col-4">
              <img src="../assets/marketing-item2.png" alt="">
              <h2 class="font-white">场景式学习</h2>
              <p class="font-white fs-sm">及时答疑、阶段测验、作业点评<br>老师伴你成长每一步</p>
            </div>
            <div class="market-img-item col-4">
              <img src="../assets/marketing-item3.png" alt="">
              <h2 class="font-white">社区型互动</h2>
              <p class="font-white fs-sm">交流讨论、学分ＰＫ、线下活动<br>学习路上不在孤单彷徨</p>
            </div>
          </a>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  setup () { }
  // 4fbaf2
}
</script>

<style lang="scss" scoped>
.class-main {
  overflow-x: hidden;
  min-height: 100%;
  a {
    outline: none;
    &:first-child .autobg {
      background-image: url('../assets/list.jpg');
    }
    &:nth-child(2) .autobg {
      background-image: url('../assets/list1.jpg');
    }
    &:nth-child(3) .autobg {
      background-image: url('../assets/list2.jpg');
    }
    &:nth-child(4) .autobg {
      background-image: url('../assets/list-banner.jpg');
    }
    &:nth-child(5) .autobg {
      background-image: url('../assets/list-banner1.jpg');
    }
    .autobg {
      height: 460px;
      @media (max-width: 1200px) {
        height: 380px;
      }
      @media (max-width: 992px) {
        height: 300px;
      }
      @media (max-width: 768px) {
        height: 250px;
      }
      background-position: center center;
      background-size: cover;
      background-repeat: no-repeat;
    }
  }
  .market-img {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    justify-content: center;
    &.market-item1 {
      background-image: url('http://www.howzhi.com/assets/img/howzhi/hz-classroom-market/classroom7/banner_bg.jpg');
    }
    &.market-item2 {
      background-image: url('http://www.howzhi.com/assets/img/howzhi/classmarketing2-bg.jpg');
    }
    &.market-item3 {
      background-color: #4fbaf2;
    }
    &.market-item4 {
      background-color: #79d05f;
      .container {
        padding: 20px 0 90px;
        .market-span {
          span {
            padding: 2px 6px;
            border-radius: 6px;
            background-color: #fea700;
          }
          margin: 30px 0;
        }
      }
    }
    .container {
      margin: 0 auto;
      @media (min-width: 768px) {
        width: 740px;
      }
      @media (min-width: 992px) {
        width: 960px;
      }
      @media (min-width: 1200px) {
        width: 1140px;
      }
    }
    .container-special {
      a {
        display: flex;
        justify-content: space-around;
        .market-img-item {
          img {
            width: 100%;
          }
          h2 {
            font-size: 20px;
            padding: 20px 0 10px;
          }
        }
      }
    }
  }
}
</style>
